package cn.itcast.xuesheng.dao;

import cn.itcast.xuesheng.domain.Topic;

import java.util.List;

public interface TopicDao {
    public int findTotalcount(int cid, String title);

    public List<Topic> findpage(int cid, int start, int pageSize, String title);

    public int findTotalcountbyuser(String username);

    public List<Topic> findpagebyuser(String username, int start, int pageSize);

    public void update(int num, int tid);

    public List<Topic> queryforxue();

    public List<Topic> queryforxue2();

    public List<Topic> queryfortu();

    public List<Topic> queryfortu2();

    public List<Topic> queryfortnanv();

    public List<Topic> queryforimg();

    public List<Topic> queryforxue3();

    public List<Topic> queryforx4();

    public void insertcontext(String username, String title, String context, int cid, String cname, String date,String imgcontext);

}
